package com.lichuang.fruitvarietysm.goods.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author shuaihang
 * @since 2019-06-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Goodssku对象", description = "")
public class Goodssku implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "skuid")
    @TableId(value = "sku_id", type = IdType.AUTO)
    private Integer skuId;

    @ApiModelProperty(value = "特增量的id组合,如。版本：清爽，那么就填75：76")
    private String attributeValue;

    @ApiModelProperty(value = "数量，即剩余的库存")
    private Integer number;

    @ApiModelProperty(value = "商品的价格")
    private BigDecimal goodsPrice;

    @ApiModelProperty(value = "商品id")
    private Integer goodsId;

    @ApiModelProperty(value = "商品重量（以kg为单位）")
    private Double goodsWeight;

    @ApiModelProperty(value = "商品状态，0为默认显示，1为动态显示")
    private Integer state;


    @ApiModelProperty(value = "attribute的名字")
    @TableField(exist = false)
    private String attributeName;
}
